﻿<%@ Page Title="" Language="C#" enableEventValidation="false" MasterPageFile="~/Portal/Master/Portal.Master" AutoEventWireup="true" CodeBehind="ChangePwd.aspx.cs" Inherits="Besture.UI.Portal.UserCenter.ChangePwd" %>
<%@ Import Namespace="Besture.Common.Helper" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/Resource/css/member.css" rel="stylesheet" />
    <script type="text/javascript" src="/Resource/js/modernizr-2.6.2.min.js"></script>    
    <script type="text/javascript" src="/Resource/js/jquery.validate.js"></script>
    <script  type="text/javascript">
        $(function () {
            $("form").validate({
                rules: {
                    pwd: {
                        required: true
                    },
                    ctl00$Content$newpwd: {
                        required: true,
                        minlength: 6,
                        maxlength: 16
                    },
                    rpwd: {
                        required: true,
                        equalTo: "#ctl00_Content_newpwd"
                    }
                },
                messages: {
                    pwd: {
                        required: "原密码不能为空"
                    },
                    ctl00$Content$newpwd: {
                        required: "请填写6-16个英文、数字、下划线的组合，区分大小写",
                        minlength: "密码至少6位",
                        maxlength: "密码不能超过16位"
                    },
                    rpwd: {
                        required: "请再次输入密码",
                        equalTo: "两次密码输入不一致"
                    }
                },
                errorPlacement: function (error, element) {
                    error.css({ "margin-top": "10px", "margin-left": "2px" });
                    element.after(error);
                },
                highlight: function (element, errorClass, validClass) {

                },
                unhighlight: function (element, errorClass) {
                }
            });
            $(".changword").css("color", "#fa771f"); 
        })
    </script>
    <style type="text/css">
        .vipbtn:hover{color: #ffffff}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="wrap">
        <div class="main member ">
            <div class="vipbanner"></div>
            <div class="container">
                <div class="layout_side">
                    <div class="side_nav">   
                        <cms:UserNav runat="server" ID="UserNav" />
                    </div>
                </div>
                <div class="layout_main">
                    <div class="vipcon">
                        <div class="viptitle">密码修改</div>
                        <form>
                            <div class="changleft ">
                                <div><span>原密码：</span> <input type="password" name="pwd" /></div>
                                <div><span>新密码：</span> <input type="password" runat="server" name="newpwd" id="newpwd" /></div>
                                <div><span>确认密码：</span> <input type="password"  name="rpwd" /></div>
                                <div><span></span>
                                    <asp:Button ID="save" runat="server" Text="保存更改" OnClick="SaveClick" />
                                </div>
                            </div>
                        </form>
                        <div class="changright">
                            <div class="stitle">小贴士</div>
                            <div class="scon">将登录密码设置为8位以上，数字、大小写字母、特殊字符混合型是相对安全的，但通常不方便记忆，在这里我们教您一个小窍门：尝试用字母"O"代替数字零等等。同时，我们建议您每隔半年修改一次登录密码。</div>
                        </div>
                        <br class="clear" />
                    </div>
                </div>
                <br class="clear" />
            </div>
        </div>
        <!-- //main -->
        <br class="clear" />
    </div>
    <!-- //wrap --> 
</asp:Content>
